package cn.edu.gzist.rabbit.service;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class MessageConsumerService {

    @RabbitListener(queues = "email.queue")
    public void email(String msg){
        System.out.println("email.direct 收到信息 = "+ msg);
    }
}
